import request from '@/utils/request'

// 查询便民服务 物品配置列表
export function listGoods(data) {
  return request({
    url: '/coordination/goods/list',
    method: 'post',
    data: data
  })
}

// 查询便民服务 物品配置详细
export function getGoods(goodsId) {
  return request({
    url: '/coordination/goods/' + goodsId,
    method: 'get'
  })
}

// 新增便民服务 物品配置
export function addGoods(data) {
  return request({
    url: '/coordination/goods',
    method: 'post',
    data: data
  })
}

// 修改便民服务 物品配置
export function updateGoods(data) {
  return request({
    url: '/coordination/goods',
    method: 'put',
    data: data
  })
}

// 删除便民服务 物品配置
export function delGoods(goodsId) {
  return request({
    url: '/coordination/goods/' + goodsId,
    method: 'delete'
  })
}
